package com.download.web.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.download.backstage.entity.ThirdAccount;
import com.download.web.entity.SysThirdAccount;
import com.download.web.service.ISysThirdAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 第三方登录配置
 * @author: cmy
 * @create: 2019-03-01 22:49
 **/
@RestController
@RequestMapping("/thirdAccountSettings")
public class SysThirdAccountController {

    @Autowired
    private ISysThirdAccountService thirdAccountService;
    @RequestMapping("/settingsByType")
    public SysThirdAccount settingsByType(Integer type){
        return thirdAccountService.getOne(new QueryWrapper<SysThirdAccount>().eq("type",type));
    }

}
